Expand description
A easy-use CITA command line tool
Re-exports
pub use crate::client::parse_url;
pub use crate::client::remove_0x;
pub use crate::client::TransactionOptions;
pub use crate::crypto::pubkey_to_address;
pub use crate::crypto::secp256k1_sign;
pub use crate::crypto::sign;
pub use crate::crypto::sm2_sign;
pub use crate::crypto::CreateKey;
pub use crate::crypto::Encryption;
pub use crate::crypto::Hashable;
pub use crate::crypto::KeyPair;
pub use crate::crypto::Message;
pub use crate::crypto::PrivateKey;
pub use crate::crypto::PubKey;
pub use crate::crypto::Secp256k1KeyPair;
pub use crate::crypto::Secp256k1PrivKey;
pub use crate::crypto::Secp256k1PubKey;
pub use crate::crypto::Signature;
pub use crate::crypto::Sm2KeyPair;
pub use crate::crypto::Sm2Privkey;
pub use crate::crypto::Sm2Pubkey;
pub use crate::crypto::Sm2Signature;
pub use crate::error::ToolError;
pub use crate::protos::Crypto;
pub use crate::protos::SignedTransaction;
pub use crate::protos::Transaction;
pub use crate::protos::UnverifiedTransaction;
pub use crate::rpctypes::JsonRpcParams;
pub use crate::rpctypes::JsonRpcResponse;
pub use crate::rpctypes::ParamsValue;
pub use crate::rpctypes::ResponseValue;
Modules
- The Jsonrpc Client
- Encryption algorithm library
- Error of cita tool
- Transaction protobuf code
- Request and Response type
Structs
- Fixed-size uninterpreted hash type with 16 bytes (128 bits) size.
- Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
- Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
- Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.
- Little-endian large integer type Unsigned 64-bit integer.
- Little-endian large integer type 256-bit unsigned integer.
- Little-endian large integer type 512-bits unsigned integer.
Traits
- Format types
- Trait implemented for all generated structs for protobuf messages.
Functions
- Decodes a hex string into raw bytes.
- According to the given abi file, decode the data
- According to the given abi file, decode the topic
- According to type, decode the data
- Encodes
data
as hex string using lowercase characters. - According to the given abi file, encode the function and parameter values
- According to type, encode the value of the parameter